The HTTP request method to use, such as "GET", "POST", "PUT", "DELETE", etc. Ignored for non-HTTP(S) URLs.
urlA string or any other object with a stringifier — including a URL object — that provides the URL of the resource to send the request to.
async OptionalAn optional Boolean parameter, defaulting to true, indicating whether or not to perform the operation asynchronously. If this value is false, the send() method does not return until the response is received. If true, notification of a completed transaction is provided using event listeners. This must be true if the multipart attribute is true, or an exception will be thrown.
Note: Synchronous requests on the main thread canbe easily disruptive to the user experience and should be avoided; in fact, manybrowsers have deprecated synchronous XHR support on the main thread entirely.Synchronous requests are permitted in Workers.
user OptionalThe optional user name to use for authentication purposes; by default, this is the null value.
password OptionalThe optional password to use for authentication purposes; by default, this is the null value.